 
<div class="span12">
    <script type="text/javascript">
        google.load("visualization", "1", {packages: ["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Tháng-năm', ''],
<?php foreach ($reportbydays as $row): ?>
    <?php $dateday = explode("-", $row->day); ?>
                    ['<?php echo $dateday[0] . '/' . $dateday[1]; ?>', <?php echo $row->value; ?>],
<?php endforeach; ?>
            ]);

            var options = {
                title: ''
            };

            var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        }
    </script> 
    <div id="chart_div" style="width: 900px; height: 300px;"></div>

    <div class="dr"><span></span></div> 

    <div class="box"> 
        <div class="head">
            <div class="isw-grid"></div>
            <h1><?php if (isset($smsday)): ?>
                    Hôm nay: <?php echo $smsday; ?> - <?php echo number_format($smsday * 5400); ?>
                <?php endif; ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a  style="color: white;"
                    href="<?php echo site_url('admincp/checkmoservices') ?>">
                    Tổng: <?php echo number_format($totalsms); ?> SMS = <?php echo number_format($totalsms * 5400); ?>
                    đồng</a>
            </h1>      

            <div class="clear"></div>
        </div>
        <div class="grid_4">
            <div class="da-panel collapsible">

                <div class="da-panel-content">
                    <table id="da-ex-datatable-numberpaging" class="da-table">
                        <thead>
                            <tr>

                        <thead>
                            <tr>
                                <th>Đầu số </th>
                                <th width="15%">Nội dung</th>
                                <th width="15%">Phonenumber</th>
                                <th width="15%">Command Code</th>
                                <th width="15%">Request ID</th>  
                                <th width="15%">Ngày</th>   
                                <th width="15%">Giờ</th>                                    
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($receivesmo as $morow): ?>
                                <tr class="odd"> 
                                    <td><?php echo $morow->dest; ?></td>
                                    <td ><?php echo $morow->content; ?></td>
                                    <td><?php echo $morow->phone; ?></td>
                                    <td ><?php echo $morow->cmdcode; ?></td>
                                    <td><?php echo $morow->requestId; ?></td>
                                    <td><?php echo $morow->today; ?></td>
                                    <td ><?php echo $morow->timenow; ?></td>
                                </tr>
                            <?php endforeach; ?>

                        </tbody>
                    </table> 
                </div>
            </div> 
        </div>
    </div>
</div>  